<template>
  <video autoplay muted loop class="background-video">
    <source src="/public/background1.mp4" type="video/mp4" />
    Your browser does not support the video tag.
  </video>
</template>

<style scoped>
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  /* 使视频在背景中 */
  justify-content: center;
  align-items: center;
}
</style>